package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.YxDeviceExtraInfoMapper;
import com.ruoyi.system.domain.YxDeviceExtraInfo;
import com.ruoyi.system.service.IYxDeviceExtraInfoService;

/**
 * 设备拓展信息Service业务层处理
 * 
 * @author lingyu
 * @date 2024-03-14
 */
@Service
public class YxDeviceExtraInfoServiceImpl implements IYxDeviceExtraInfoService 
{
    @Autowired
    private YxDeviceExtraInfoMapper yxDeviceExtraInfoMapper;

    /**
     * 查询设备拓展信息
     * 
     * @param id 设备拓展信息主键
     * @return 设备拓展信息
     */
    @Override
    public YxDeviceExtraInfo selectYxDeviceExtraInfoById(Long id)
    {
        return yxDeviceExtraInfoMapper.selectYxDeviceExtraInfoById(id);
    }

    /**
     * 查询设备拓展信息列表
     * 
     * @param yxDeviceExtraInfo 设备拓展信息
     * @return 设备拓展信息
     */
    @Override
    public List<YxDeviceExtraInfo> selectYxDeviceExtraInfoList(YxDeviceExtraInfo yxDeviceExtraInfo)
    {
        return yxDeviceExtraInfoMapper.selectYxDeviceExtraInfoList(yxDeviceExtraInfo);
    }

    /**
     * 新增设备拓展信息
     * 
     * @param yxDeviceExtraInfo 设备拓展信息
     * @return 结果
     */
    @Override
    public int insertYxDeviceExtraInfo(YxDeviceExtraInfo yxDeviceExtraInfo)
    {
        return yxDeviceExtraInfoMapper.insertYxDeviceExtraInfo(yxDeviceExtraInfo);
    }

    /**
     * 修改设备拓展信息
     * 
     * @param yxDeviceExtraInfo 设备拓展信息
     * @return 结果
     */
    @Override
    public int updateYxDeviceExtraInfo(YxDeviceExtraInfo yxDeviceExtraInfo)
    {
        return yxDeviceExtraInfoMapper.updateYxDeviceExtraInfo(yxDeviceExtraInfo);
    }

    /**
     * 批量删除设备拓展信息
     * 
     * @param ids 需要删除的设备拓展信息主键
     * @return 结果
     */
    @Override
    public int deleteYxDeviceExtraInfoByIds(Long[] ids)
    {
        return yxDeviceExtraInfoMapper.deleteYxDeviceExtraInfoByIds(ids);
    }

    /**
     * 删除设备拓展信息信息
     * 
     * @param id 设备拓展信息主键
     * @return 结果
     */
    @Override
    public int deleteYxDeviceExtraInfoById(Long id)
    {
        return yxDeviceExtraInfoMapper.deleteYxDeviceExtraInfoById(id);
    }
}
